using System;
using System.ComponentModel;
using System.Collections;
using System.Diagnostics;
using System.Data;
using System.Data.SqlClient;
using System.Xml;
using System.Reflection;
using Microsoft.Win32;
using System.IO;
using Srvtools;
using System.Security;
using System.Security.Permissions;

namespace sBCust
{
    /// <summary>
    /// Summary description for Component.
    /// </summary>
    public class Component : DataModule
    {
        private UpdateComponent ucMaster;
        private ServiceManager serviceManager;
        private InfoCommand Master;
        private InfoCommand Detail1;
        private InfoDataSource idsRelation1;
        private UpdateComponent ucDetail1;
        private InfoConnection infoConnection;
        private InfoCommand Detail2;
        private InfoDataSource idsRelation2;
        private UpdateComponent ucDetail2;
        private InfoCommand MasterView;
        private InfoCommand RPT_Master;
        private InfoCommand RPT_Detail1;
        private InfoCommand RPT_Detail2;
        private InfoDataSource infoDataSource1;
        private InfoDataSource infoDataSource2;
        /// <summary>
        /// Required designer variable.
        /// </summary>
        private System.ComponentModel.IContainer components;

        public Component(System.ComponentModel.IContainer container)
        {
            ///
            /// Required for Windows.Forms Class Composition Designer support
            ///
            container.Add(this);
            InitializeComponent();

            //
            // TODO: Add any constructor code after InitializeComponent call
            //
        }

        public Component()
        {
            ///
            /// This call is required by the Windows.Forms Designer.
            ///
            InitializeComponent();

            //
            // TODO: Add any constructor code after InitializeComponent call
            //
        }

        /// <summary> 
        /// Clean up any resources being used.
        /// </summary>
        protected override void Dispose(bool disposing)
        {
            if (disposing)
            {
                if (components != null)
                {
                    components.Dispose();
                }
            }
            base.Dispose(disposing);
        }

        #region Component Designer generated code
        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            this.components = new System.ComponentModel.Container();
            Srvtools.KeyItem keyItem1 = new Srvtools.KeyItem();
            Srvtools.KeyItem keyItem2 = new Srvtools.KeyItem();
            Srvtools.KeyItem keyItem3 = new Srvtools.KeyItem();
            Srvtools.ColumnItem columnItem1 = new Srvtools.ColumnItem();
            Srvtools.ColumnItem columnItem2 = new Srvtools.ColumnItem();
            Srvtools.KeyItem keyItem4 = new Srvtools.KeyItem();
            Srvtools.KeyItem keyItem5 = new Srvtools.KeyItem();
            Srvtools.ColumnItem columnItem3 = new Srvtools.ColumnItem();
            Srvtools.ColumnItem columnItem4 = new Srvtools.ColumnItem();
            Srvtools.KeyItem keyItem6 = new Srvtools.KeyItem();
            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Component));
            Srvtools.KeyItem keyItem7 = new Srvtools.KeyItem();
            Srvtools.KeyItem keyItem8 = new Srvtools.KeyItem();
            Srvtools.KeyItem keyItem9 = new Srvtools.KeyItem();
            Srvtools.KeyItem keyItem10 = new Srvtools.KeyItem();
            Srvtools.KeyItem keyItem11 = new Srvtools.KeyItem();
            Srvtools.ColumnItem columnItem5 = new Srvtools.ColumnItem();
            Srvtools.ColumnItem columnItem6 = new Srvtools.ColumnItem();
            Srvtools.ColumnItem columnItem7 = new Srvtools.ColumnItem();
            Srvtools.ColumnItem columnItem8 = new Srvtools.ColumnItem();
            this.ucMaster = new Srvtools.UpdateComponent(this.components);
            this.Master = new Srvtools.InfoCommand(this.components);
            this.infoConnection = new Srvtools.InfoConnection();
            this.serviceManager = new Srvtools.ServiceManager(this.components);
            this.Detail1 = new Srvtools.InfoCommand(this.components);
            this.idsRelation1 = new Srvtools.InfoDataSource(this.components);
            this.ucDetail1 = new Srvtools.UpdateComponent(this.components);
            this.Detail2 = new Srvtools.InfoCommand(this.components);
            this.idsRelation2 = new Srvtools.InfoDataSource(this.components);
            this.ucDetail2 = new Srvtools.UpdateComponent(this.components);
            this.MasterView = new Srvtools.InfoCommand(this.components);
            this.RPT_Master = new Srvtools.InfoCommand(this.components);
            this.RPT_Detail1 = new Srvtools.InfoCommand(this.components);
            this.RPT_Detail2 = new Srvtools.InfoCommand(this.components);
            this.infoDataSource1 = new Srvtools.InfoDataSource(this.components);
            this.infoDataSource2 = new Srvtools.InfoDataSource(this.components);
            ((System.ComponentModel.ISupportInitialize)(this.Master)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.infoConnection)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.Detail1)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.Detail2)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.MasterView)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.RPT_Master)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.RPT_Detail1)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.RPT_Detail2)).BeginInit();
            // 
            // ucMaster
            // 
            this.ucMaster.AutoTrans = true;
            this.ucMaster.ExceptJoin = false;
            this.ucMaster.LogInfo = null;
            this.ucMaster.Name = "ucMaster";
            this.ucMaster.SelectCmd = this.Master;
            this.ucMaster.ServerModify = true;
            this.ucMaster.ServerModifyGetMax = false;
            this.ucMaster.TransIsolationLevel = System.Data.IsolationLevel.ReadCommitted;
            this.ucMaster.WhereMode = Srvtools.WhereModeType.Keyfields;
            // 
            // Master
            // 
            this.Master.CommandText = "select [B_CUST].* from [B_CUST]";
            this.Master.CommandTimeout = 30;
            this.Master.CommandType = System.Data.CommandType.Text;
            this.Master.EEPAlias = null;
            this.Master.InfoConnection = this.infoConnection;
            keyItem1.KeyName = "ID_CUST";
            this.Master.KeyFields.Add(keyItem1);
            this.Master.Name = "Master";
            this.Master.NotificationAutoEnlist = false;
            this.Master.SecExcept = null;
            this.Master.SecFieldName = "";
            this.Master.SecStyle = Srvtools.SecurityStyle.ssByNone;
            this.Master.SelectTop = 0;
            this.Master.SiteControl = false;
            this.Master.SiteFieldName = "";
            this.Master.Transaction = null;
            this.Master.UpdatedRowSource = System.Data.UpdateRowSource.Both;
            // 
            // infoConnection
            // 
            this.infoConnection.ConnectionType = Srvtools.ConnectionType.SqlClient;
            this.infoConnection.EEPAlias = "ERPS";
            // 
            // Detail1
            // 
            this.Detail1.CommandText = "select [B_ADDR_C].* from [B_ADDR_C]";
            this.Detail1.CommandTimeout = 30;
            this.Detail1.CommandType = System.Data.CommandType.Text;
            this.Detail1.EEPAlias = null;
            this.Detail1.InfoConnection = this.infoConnection;
            keyItem2.KeyName = "ID_CUST";
            keyItem3.KeyName = "ID_ADDR";
            this.Detail1.KeyFields.Add(keyItem2);
            this.Detail1.KeyFields.Add(keyItem3);
            this.Detail1.Name = "Detail1";
            this.Detail1.NotificationAutoEnlist = false;
            this.Detail1.SecExcept = null;
            this.Detail1.SecFieldName = "";
            this.Detail1.SecStyle = Srvtools.SecurityStyle.ssByNone;
            this.Detail1.SelectTop = 0;
            this.Detail1.SiteControl = false;
            this.Detail1.SiteFieldName = "";
            this.Detail1.Transaction = null;
            this.Detail1.UpdatedRowSource = System.Data.UpdateRowSource.Both;
            // 
            // idsRelation1
            // 
            this.idsRelation1.Detail = this.Detail1;
            columnItem1.FieldName = "ID_CUST";
            this.idsRelation1.DetailColumns.Add(columnItem1);
            this.idsRelation1.DynamicTableName = false;
            this.idsRelation1.Master = this.Master;
            columnItem2.FieldName = "ID_CUST";
            this.idsRelation1.MasterColumns.Add(columnItem2);
            // 
            // ucDetail1
            // 
            this.ucDetail1.AutoTrans = true;
            this.ucDetail1.ExceptJoin = false;
            this.ucDetail1.LogInfo = null;
            this.ucDetail1.Name = "ucDetail1";
            this.ucDetail1.SelectCmd = this.Detail1;
            this.ucDetail1.ServerModify = true;
            this.ucDetail1.ServerModifyGetMax = false;
            this.ucDetail1.TransIsolationLevel = System.Data.IsolationLevel.ReadCommitted;
            this.ucDetail1.WhereMode = Srvtools.WhereModeType.Keyfields;
            // 
            // Detail2
            // 
            this.Detail2.CommandText = "select [B_CONTACT_C].* from [B_CONTACT_C]";
            this.Detail2.CommandTimeout = 30;
            this.Detail2.CommandType = System.Data.CommandType.Text;
            this.Detail2.EEPAlias = null;
            this.Detail2.InfoConnection = this.infoConnection;
            keyItem4.KeyName = "ID_CUST";
            keyItem5.KeyName = "NO_CONTACT";
            this.Detail2.KeyFields.Add(keyItem4);
            this.Detail2.KeyFields.Add(keyItem5);
            this.Detail2.Name = "Detail2";
            this.Detail2.NotificationAutoEnlist = false;
            this.Detail2.SecExcept = null;
            this.Detail2.SecFieldName = null;
            this.Detail2.SecStyle = Srvtools.SecurityStyle.ssByNone;
            this.Detail2.SelectTop = 0;
            this.Detail2.SiteControl = false;
            this.Detail2.SiteFieldName = null;
            this.Detail2.Transaction = null;
            this.Detail2.UpdatedRowSource = System.Data.UpdateRowSource.Both;
            // 
            // idsRelation2
            // 
            this.idsRelation2.Detail = this.Detail2;
            columnItem3.FieldName = "ID_CUST";
            this.idsRelation2.DetailColumns.Add(columnItem3);
            this.idsRelation2.DynamicTableName = false;
            this.idsRelation2.Master = this.Master;
            columnItem4.FieldName = "ID_CUST";
            this.idsRelation2.MasterColumns.Add(columnItem4);
            // 
            // ucDetail2
            // 
            this.ucDetail2.AutoTrans = true;
            this.ucDetail2.ExceptJoin = false;
            this.ucDetail2.LogInfo = null;
            this.ucDetail2.Name = "ucDetail2";
            this.ucDetail2.SelectCmd = this.Detail2;
            this.ucDetail2.ServerModify = true;
            this.ucDetail2.ServerModifyGetMax = false;
            this.ucDetail2.TransIsolationLevel = System.Data.IsolationLevel.ReadCommitted;
            this.ucDetail2.WhereMode = Srvtools.WhereModeType.Keyfields;
            // 
            // MasterView
            // 
            this.MasterView.CommandText = "select [B_CUST].* from [B_CUST]";
            this.MasterView.CommandTimeout = 30;
            this.MasterView.CommandType = System.Data.CommandType.Text;
            this.MasterView.EEPAlias = null;
            this.MasterView.InfoConnection = this.infoConnection;
            keyItem6.KeyName = "ID_CUST";
            this.MasterView.KeyFields.Add(keyItem6);
            this.MasterView.Name = "MasterView";
            this.MasterView.NotificationAutoEnlist = false;
            this.MasterView.SecExcept = null;
            this.MasterView.SecFieldName = null;
            this.MasterView.SecStyle = Srvtools.SecurityStyle.ssByNone;
            this.MasterView.SelectTop = 0;
            this.MasterView.SiteControl = false;
            this.MasterView.SiteFieldName = null;
            this.MasterView.Transaction = null;
            this.MasterView.UpdatedRowSource = System.Data.UpdateRowSource.Both;
            // 
            // RPT_Master
            // 
            this.RPT_Master.CommandText = resources.GetString("RPT_Master.CommandText");
            this.RPT_Master.CommandTimeout = 30;
            this.RPT_Master.CommandType = System.Data.CommandType.Text;
            this.RPT_Master.EEPAlias = null;
            this.RPT_Master.InfoConnection = this.infoConnection;
            keyItem7.KeyName = "ID_CUST";
            this.RPT_Master.KeyFields.Add(keyItem7);
            this.RPT_Master.Name = "RPT_Master";
            this.RPT_Master.NotificationAutoEnlist = false;
            this.RPT_Master.SecExcept = null;
            this.RPT_Master.SecFieldName = null;
            this.RPT_Master.SecStyle = Srvtools.SecurityStyle.ssByNone;
            this.RPT_Master.SelectTop = 0;
            this.RPT_Master.SiteControl = false;
            this.RPT_Master.SiteFieldName = null;
            this.RPT_Master.Transaction = null;
            this.RPT_Master.UpdatedRowSource = System.Data.UpdateRowSource.Both;
            // 
            // RPT_Detail1
            // 
            this.RPT_Detail1.CommandText = "select [B_ADDR_C].* from [B_ADDR_C]";
            this.RPT_Detail1.CommandTimeout = 30;
            this.RPT_Detail1.CommandType = System.Data.CommandType.Text;
            this.RPT_Detail1.EEPAlias = null;
            this.RPT_Detail1.InfoConnection = this.infoConnection;
            keyItem8.KeyName = "ID_CUST";
            keyItem9.KeyName = "ID_ADDR";
            this.RPT_Detail1.KeyFields.Add(keyItem8);
            this.RPT_Detail1.KeyFields.Add(keyItem9);
            this.RPT_Detail1.Name = "RPT_Detail1";
            this.RPT_Detail1.NotificationAutoEnlist = false;
            this.RPT_Detail1.SecExcept = null;
            this.RPT_Detail1.SecFieldName = null;
            this.RPT_Detail1.SecStyle = Srvtools.SecurityStyle.ssByNone;
            this.RPT_Detail1.SelectTop = 0;
            this.RPT_Detail1.SiteControl = false;
            this.RPT_Detail1.SiteFieldName = null;
            this.RPT_Detail1.Transaction = null;
            this.RPT_Detail1.UpdatedRowSource = System.Data.UpdateRowSource.Both;
            // 
            // RPT_Detail2
            // 
            this.RPT_Detail2.CommandText = "select [B_CONTACT_C].* from [B_CONTACT_C]";
            this.RPT_Detail2.CommandTimeout = 30;
            this.RPT_Detail2.CommandType = System.Data.CommandType.Text;
            this.RPT_Detail2.EEPAlias = null;
            this.RPT_Detail2.InfoConnection = this.infoConnection;
            keyItem10.KeyName = "ID_CUST";
            keyItem11.KeyName = "NO_CONTACT";
            this.RPT_Detail2.KeyFields.Add(keyItem10);
            this.RPT_Detail2.KeyFields.Add(keyItem11);
            this.RPT_Detail2.Name = "RPT_Detail2";
            this.RPT_Detail2.NotificationAutoEnlist = false;
            this.RPT_Detail2.SecExcept = null;
            this.RPT_Detail2.SecFieldName = null;
            this.RPT_Detail2.SecStyle = Srvtools.SecurityStyle.ssByNone;
            this.RPT_Detail2.SelectTop = 0;
            this.RPT_Detail2.SiteControl = false;
            this.RPT_Detail2.SiteFieldName = null;
            this.RPT_Detail2.Transaction = null;
            this.RPT_Detail2.UpdatedRowSource = System.Data.UpdateRowSource.Both;
            // 
            // infoDataSource1
            // 
            this.infoDataSource1.Detail = this.RPT_Detail1;
            columnItem5.FieldName = "ID_CUST";
            this.infoDataSource1.DetailColumns.Add(columnItem5);
            this.infoDataSource1.DynamicTableName = false;
            this.infoDataSource1.Master = this.RPT_Master;
            columnItem6.FieldName = "ID_CUST";
            this.infoDataSource1.MasterColumns.Add(columnItem6);
            // 
            // infoDataSource2
            // 
            this.infoDataSource2.Detail = this.RPT_Detail2;
            columnItem7.FieldName = "ID_CUST";
            this.infoDataSource2.DetailColumns.Add(columnItem7);
            this.infoDataSource2.DynamicTableName = false;
            this.infoDataSource2.Master = this.RPT_Master;
            columnItem8.FieldName = "ID_CUST";
            this.infoDataSource2.MasterColumns.Add(columnItem8);
            ((System.ComponentModel.ISupportInitialize)(this.Master)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.infoConnection)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.Detail1)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.Detail2)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.MasterView)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.RPT_Master)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.RPT_Detail1)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.RPT_Detail2)).EndInit();

        }
        #endregion
    }
}
